home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
em7sui_1
/
em7sui~1.exe
/
PieChartTest.wr_
/
PieChartTest.wr
Wrap
Text File
|
1998-10-22
|
3KB
|
132 lines
#VRML V2.0 utf8
EXTERNPROTO Red [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color3"
EXTERNPROTO Orange [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color14"
EXTERNPROTO Yellow [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color26"
EXTERNPROTO Green [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color22"
EXTERNPROTO Blue [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color7"
EXTERNPROTO Violet [ exposedField SFFloat transparency ] "..\Appearances\ArtDecoMaterials.wrl#color11"
EXTERNPROTO em7_RoundedRingSlice [
exposedField SFNode appearance
field SFFloat height
field SFFloat radius
field SFFloat innerRadius
field SFFloat angle
field SFFloat bevelRadius
field SFFloat creaseAngle
eventIn SFFloat set_angle
eventIn SFFloat set_height
eventIn SFFloat set_radius
eventIn SFFloat set_innerRadius
] "..\VR_GRAPH.wrl#em7_RoundedRingSlice"
EXTERNPROTO em7_PieChart [
field MFNode appearances
field MFNode slices
field SFFloat radius
field SFFloat innerRadius
field SFFloat height
field MFFloat data
field SFInt32 dataBlockSize
field MFString captions
field SFColor captionColor
field SFFloat captionHeight
field SFBool billboarded
eventIn MFFloat set_data
eventIn MFString set_captions
eventIn MFNode set_appearances
eventOut MFNode broadcastAppearances
eventOut MFString captions_changed
] "..\VR_GRAPH.wrl#em7_PieChart"
EXTERNPROTO em7_Legend [
field MFNode appearances
field MFString descriptions
field SFString keyStyle
field SFFloat textHeight
field SFFloat textGap
field SFColor textColor
eventIn MFNode set_appearances
eventIn MFString set_descriptions
] "..\VR_GRAPH.wrl#em7_Legend"
NavigationInfo {
headlight FALSE
}
Background {
skyColor [
0 0 0.2
0.7 0.7 0.8
1 1 1
]
skyAngle [3, 6]
}
DEF VIEW Viewpoint {
position 6 6 12
orientation -0.314 0.422 0.064 0.499
}
DEF PIE_TRANS Transform {
children DEF PIE em7_PieChart {
appearances [
Red {}
Yellow {}
Orange {}
Green {}
Blue {}
Violet {}
]
slices [
em7_RoundedRingSlice { bevelRadius 0.3 }
em7_RoundedRingSlice { bevelRadius 0.3 }
em7_RoundedRingSlice { bevelRadius 0.3 }
em7_RoundedRingSlice { bevelRadius 0.3 }
em7_RoundedRingSlice { bevelRadius 0.3 }
em7_RoundedRingSlice { bevelRadius 0.3 }
]
data [ 1, 2, 3, 4, 5, 6 ]
radius 4
innerRadius 2
height 1.5
captionColor 0.8 0.8 1
captionHeight 0.4
captions ["Jan - Feb", "March - Apr", "May - Jun", "Jul - Aug", "Sep - Oct", "Nov - Dec"]
}
}
Transform {
translation 5.5 0 0
children [
DEF LEGEND em7_Legend {
textHeight 0.3
textGap 0.1
}
]
}
PointLight {
location 0 30 0
ambientIntensity 0.2
}
PointLight {
location 25 2 5
}
PointLight {
location -25 2 5
}
PointLight {
location 0 2 15
}
ROUTE PIE.broadcastAppearances TO LEGEND.set_appearances
ROUTE PIE.captions_changed TO LEGEND.set_descriptions